import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog
# from MainWinSignalSlog01 import *
from menu import *
class MyMainWindow(QMainWindow, Ui_MainWindow):
    def __init__(self, parent = None):
        super(MyMainWindow, self).__init__(parent)
        self.setupUi(self)
        self.fileOpenAction.triggered.connect(self.openMsg)

    def openMsg(self):
        file,ok = QFileDialog.getOpenFileName(self, "打开", "/home/kkomia/", "All Files (*);;Text Files (*.txt)")
        self.statusbar.showMessage(file)

if __name__== "__main__":
    app = QApplication(sys.argv)
    myWin = MyMainWindow()
    myWin.show()
    sys.exit(app.exec_())

